***Master do file for data processing***

clear

**Set path to Replication Package**
cd "XXX\Replication Package"

**Regions**
do "Data\Gen_regions\region codes"

**Sample 1 New**
do "Data\Gen_sample1_new\Make analysis sample 1"

**Sample 1 New Extended**
do "Data\Gen_sample1_new_extended\Make analysis sample 1 extended"


**Field of Study**
//run "Data\Gen_field_of_study\Get field of study codes" in SAS -> exports field_of_study.dta

**Run kmeans to generate ambition types**
do "Data\Gen_kmeans ambition types\Gen_kmeans ambition types"

**Run kmeans to generate ambition types (extended)**
do "Data\Gen_kmeans ambition types extended\kmeans ambition types extended"

**Lifetime wages**
do "Data\Gen_life_wage_ambition_final\Get life-time hourly wages"

**Lifetime earnings**
do "Data\Gen_life_earnings_ambition_final\Get life-time earnings"

**Wealth**
do "Data\Gen_wealth_ambition_final\Get parental wealth"

**Part-time penalties**
do "Data\Gen_Goldin_quotients_for_all\Gen_Goldin_quotients_for_all"

**Manager Training**
do "Data\Gen_manager_training\Get manager and training variables"

**First Child**
do "Data\Gen_first_child\first_child"

**Dataset with singles**
do "Data\Gen_dataset_with_singles\Dataset with singles"

**Dataset with singles extended**
do "Data\Gen_dataset_with_singles_extended\Dataset with singles extended"

**Dataset with types**
do "Data\Gen_dataset_with_types\Create types"

**Post-secondary fields full population**
do "Data\Gen_post_secondary_fields_full_population\Post-secondary fields full population"

**Start Sample**
do "Data\Gen_start_sample\Cloud plot full population"

**Before Reduction**
do "Data\Gen_before_reduction\Get full sample"






